<template>
  <div class="admin">
    <el-container>
      <el-header>
        <h1>电商后台管理系统</h1>
        <el-button type="info">退出</el-button>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <!-- 左侧导航 -->
        <el-menu background-color="#333744" text-color="#fff" active-text-color="#409eff" default-active="2" router>
      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>用户管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/userlist">用户列表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="2">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>权限管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/rolelist">角色列表</el-menu-item>
          <el-menu-item index="/limitslist">权限列表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
       <el-submenu index="3">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>商品管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/goodslist">商品列表</el-menu-item>
          <el-menu-item index="/sort">分类参数</el-menu-item>
          <el-menu-item index="/goodssort">商品分类</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
       <el-submenu index="4">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>订单管理</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/orderlist">订单列表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
      <el-submenu index="5">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>数据统计</span>
        </template>
        <el-menu-item-group>
          <el-menu-item index="/datalist">数据报表</el-menu-item>
        </el-menu-item-group>
      </el-submenu>
    </el-menu>
        </el-aside>
        <el-main>
          <!-- 视图 -->
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script>
export default {
    data() {
        return {
            
        }
    },
    methods: {
        
    },
}
</script>
<style lang="scss" scoped>
.el-header {
  background-color: #373d41;
  color: #fff;
  line-height: 60px;
  display: flex;
  justify-content: space-between;
  .el-button {
    margin: 10px 0;
  }
}

.el-aside {
  background-color:#333744;
  color: #333;
  height: 100vh;
}
.el-main {
  background-color: #e9eef3;
  color: #333;
  height: 100vh;
}
</style>